<div class="body-news">
<?
$news_detail = getRecord('xteam_content','id='.$id);
if($news_detail){
?>
    <div class="block-news-detail">
        <h1 class="title-news-detail"><?=$news_detail["name"]?></h1>
        <? if($news_detail['image_large']){?>
        <img src="<?=$curHost.$news_detail['image_large']?>" alt="<?=utf8_to_ascii($news_detail['seo_key']!=''?$news_detail['seo_key']:$news_detail['name'])?>" class="img-news-detail">
        <?}else{?>
        <img src="<?=$curHost?>images/no_image.gif" alt="<?=utf8_to_ascii($news_detail['seo_key']!=''?$news_detail['seo_key']:$news_detail['name'])?>" class="img-news-detail">
        <? }?>
        <div class="short-detail"><?=html_entity_decode($news_detail["detail_short"], ENT_QUOTES, 'UTF-8');?></div>
        <div style="margin-top: 10px;text-align:justify;">
            <?=html_entity_decode($news_detail["detail"], ENT_QUOTES, 'UTF-8');?>
        </div>
        <div class="newscungloai">
            <span class="date-tag">
                <?php
                    if($_lang=="vn") echo "Thông tin liên quan";
                    else if($_lang=="en") echo "Other news";
                    else echo "其他新聞";
                ?>
            </span>
            <br />
            <blockquote>
            <ul>
            <? $news_same=getArray('xteam_content','status=1 AND parent_id='.$news_detail['parent_id'].' AND id<>'.$id,'0,10');
            if($news_same){
                foreach($news_same as $Item_same){?>
                    <li><a href="<?=$curHost.utf8_to_ascii($newscatali[$Item_same['parent_id']]!=''?$newscatali[$Item_same['parent_id']]:$newscatname[$Item_same['parent_id']])?>/<?=utf8_to_ascii($Item_same['seo_key']!=''?$Item_same['seo_key']:$Item_same['name'])?>/3/<?=$Item_same['id']?>.html" title="<?=str_replace('"', '\'', $Item_same['name'])?>"><?=$Item_same['name']?></a></li>
            <?	}
            }?>
            </ul>
            </blockquote>
        </div>
        <div class="clear"></div>
    </div>
</div>
<?
}else{
    require_once 'modules/error.php';
}?>